package app

import (
	"github.com/boticord/backend/notifications/brand"
	"go.uber.org/fx"
	"go.uber.org/zap"
)

func newLogger() fx.Option {
	return fx.Module("Logger", fx.Provide(func() (*zap.Logger, error) {
		return zap.NewDevelopment()
	}))
}

func newGreeter() fx.Option {
	return fx.Module("Greeter", fx.Invoke(func(logger *zap.Logger) {
		logger.Info("Hello", zap.String("who", brand.BrandName))
	}))
}
